package woshiheima6;

import java.util.ArrayList;
import java.util.List;

public class ForDemo {
    public static void main(String[] args) {
        int[] arr = {1,2,3,4,5};
        for(int i:arr){
      System.out.println(i);
        }
        System.out.println("--------------------------------");
        String [] strngArray = {"一休","二姑","三毛"};
        for (String s:strngArray){
            System.out.println(s);
        }

        System.out.println("--------------------------------");
        List<String> list = new ArrayList<String>();
        list.add("张三");
        list.add("王二");
        for (String s : list){
            System.out.println(s);
        }

    }
}
